import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    Column {
        anchors.centerIn: parent
        spacing: 20

        BusyIndicator {
            id: busyIndicator
            running: false
            width: 64
            height: width
        }

        Button {
            text: busyIndicator.running ? "Stop Loading" : "Start Loading"
            onClicked: busyIndicator.running = !busyIndicator.running
        }
    }
}
